package design.realizetype;

/**
 * 原型模式
 */
public class Realizetype implements Cloneable {
    public Realizetype(){
        System.out.println("初始化");
    }
    @Override
    protected Object clone() throws CloneNotSupportedException { // 克隆用对象
        return super.clone();
    }
}
